Release 10.1A: OpenEdge Data Management:
Database Administration
PROSHUT command
Shuts down the OpenEdge database server and individual processes. Before you shut down the broker, have all application users quit their sessions. If necessary, you can disconnect users by using the PROSHUT command’s Disconnect a User or Unconditional Shutdown parameters.
Syntax
proshutdb-name[ -b | -by| -bn| -C list | -C disconnectusername| -F | -Gw| -Hhost-name| -Sservice-name| -cpinternalcodepage| -cpstreamcodepage
Parameters
db-nameSpecifies the database the server is running against.
-bDirects PROSHUT to perform a batch shutdown. When no client is connected, the database automatically shuts down. When one or more clients are connected, PROSHUT prompts the user to enter “yes” to perform an unconditional batch shutdown and to disconnect all active users; or “no” to perform a batch shutdown only if there are no active users. The -
bparameter combines the functionality of the -byor -bnparameters.-byDirects PROSHUT to perform an unconditional batch shutdown and to disconnect all active users. Note that PROSHUT does not give users any notice before disconnecting them.
-bnDirects PROSHUT to perform a batch shutdown only if there are no active users.
-C listLists all of the users connected to the database. The list is printed out to the screen without any page breaks.
-C disconnectusernumAllows you to initiate a disconnect for the specified user. This is similar to option 1 of the PROSHUT menu.
-FStarts an emergency shutdown. To use this parameter, you must run PROSHUT on the machine where the server resides. This parameter is not applicable for remote shutdowns or DataServer shutdowns.
-GwFor DataServers, specifies the DataServer broker to shut down.
-Hhost-nameSpecifies the machine where the database server runs. If issuing the shutdown command from a remote machine, specify the host name.
-Sservice-nameSpecifies the database server or broker process. If issuing the shutdown command from a remote machine, specify the service name.
-cpinternalcodepageAn internationalization startup parameter that identifies the code page used in memory.
-cpstreamcodepageAn internationalization startup parameter that identifies the code page used for stream I/O.
When you enter the PROSHUT command without the -
by, -bn, or -Fparameters, the following menu appears:
The following table lists the menu options and their actions:
Notes
- You can shut down using the PROMON utility’s Shut Down Database menu option.
- The user who shuts down the server must have started it, or be root (on UNIX).
- When you initiate PROSHUT over a network, the amount of time that it takes to actually shut down all of the OpenEdge processes and to free any ports varies depending on the number of clients, brokers, and servers that must be shut down. The PROSHUT command might return control to the terminal before all of the processes are stopped and resources are freed.
- If you specified a unique value for
-cpinternalor-cpstreamwhen you opened the database, you must specify that same value for-cpinternalor-cpstreamwhen you close the database with the PROSHUT command. If you do not, PROSHUT uses the values for-cpinternaland-cpstreamfound in the main startup parameter file created during installation (such asDLC/startup.pf). If the values of-cpinternalor-cpstreamspecified for your database do not match the values specified in the main startup parameter file, you receive the following error message:
- Unconditional forced shutdown (
-byF) is not allowed on a database started with no integrity (-i).- Forced shutdown (
-F) on a database started with no integrity (-i) requires two confirmations. The first confirmation requires you to acknowledge that the database was started with no integrity and you are initiating a forced shutdown. The second confirmation is the normal forced shutdown confirmation. You must answer y to both for the shutdown to execute. This type of shutdown can cause database corruption.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |